//
//  TDSelfDefine.h
//  TopDesign
//
//  Created by Hacker College on 15/11/11.
//  Copyright © 2015年 Wiseyep. All rights reserved.
//

#ifndef TDSelfDefine_h
#define TDSelfDefine_h



#define WS __weak typeof(self) weakSelf = self;
//#define globalUser [[TDUserManager sharedInstance] loginUser]
//#define globalHttp [TDHttpRequestManager sharedInstance]
//#define globalApi [TDApiManager sharedInstance]

#define AVATARPLACEHOLDER [UIImage imageNamed:@"worker_icon"]
#define IMAGEPLACEHOLDER [UIImage imageNamed:@"数据错误展位图小"]




#define FW_IOS7 ([[[UIDevice currentDevice]systemVersion]floatValue] >= 7.0 ? YES : NO)
#define FW_IMAGE(name) [UIImage imageNamed:(name)]
#define kBorder_NavButton       36

#define FW_FONT(size)  [UIFont systemFontOfSize:(size)]
#define FW_XWID_FONT(size)  [UIFont systemFontOfSize:(size*WID)]

#define listConut     10//每次请求个数


//upYun
#define BaseUpYunUrl_user              @"http://zxjl-user.b0.upaiyun.com"// upYun_user基础地址
#define BaseUpYunUrl_worker            @"http://zxjl-worker.b0.upaiyun.com"// upYun_worker基础地址
#define spaceUpYun_user           @"zxjl-user"// upYun-user空间
#define spaceUpYun_work           @"zxjl-worker"// upYun-work空间
#define upYun_userPassword            @"kpo1DzFaO9+tEhHDBZVb3lBuhpU="//upYun秘钥 用户
#define upYun_workPassword            @"x3gSOwfN5F7klaSesSHO6657XOU="//upYun秘钥 工人




//登录模块
#define Login_show                  @"worker/Dologin"//密码登录接口
#define GetMsgCode_show             @"worker/GetMsgCode"//验证码接口
#define Register_show               @"worker/Register"//注册接口
#define SmsLogin_show               @"worker/smslogin"//短信验证码登录接口
#define ResetPassword_show          @"worker/ResetPassword"//重置密码接口
#define sendVerifyRequest_show      @"worker/sendVerifyRequest" //提交审核请求

//个人中心模块
#define getUserInfo_show            @"worker/getWorkerInfo"     //获取用户信息
#define getWorkerCheckin_show       @"workerCheckin/add" //签到

#define uploadConstructPic_show     @"worker/uploadConstructPic"//上传我施工的图片
#define DeleteConstructPic_show     @"worker/DeleteConstructPic"//删除我施工的图片

#define getApplyWithdraw_show       @"worker/applyWithdraw"     //提现
#define getBankCashList_show        @"worker/GetBankCashList"   //流水账


//首页模块
#define getWorkerTypes              @"workerType/getWorkerTypes"  //工种列表信息
#define getWorkerHomeCarosel_show   @"workerCarosel/GetCaroselList" //轮播图请求
#define getWorkerHomeList_show      @"workerCaselist/getListPaging"  //首页列表


//项目列表(所有项目)
#define getWorkerOrderList_show      @"order/getWorkerOrderList"  //项目列表
#define orderAcceptOrder_show        @"order/acceptOrder"  //接单
#define orderDenyOrder_show        @"order/denyOrder"  //拒单

//工作报告模块
#define getWorkingProjects_show     @"orderTask/GetWorkingProjects"  //根据某一天获取工作报告列表
#define getTaskByDay_show           @"orderTask/GetTaskByDay"           //获取某一天的任务
#define addTaskByDay_show           @"orderTask/add"           //提交每天的任务



//
#define deviceCheckIn_show           @"worker/DeviceCheckIn"           //传递信息请求




//
#define platfrom         @"iOS" //平台标志
#define worker           @"worker" //
#define secret           @"zxjl2016" //平台标志
#define avatarcase       @"!avatarcase"//头像图片格式
#define caroselmain       @"!caroselmain"//轮播图格式




//UM
#define App_Version   [[[NSBundle mainBundle] infoDictionary]objectForKey:@"CFBundleShortVersionString"]
#define UMAPPKEW       @"5756568de0f55a2d2c000321"

#define  DOCUMENT  [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]
#define  isNSDictionary  [data isKindOfClass:[NSDictionary class]]



#endif /* TDSelfDefine_h */


#if DEBUG

#define NSLog(FORMAT, ...) fprintf(stderr,"[%s:%d行] %s\n",[[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]);

#else

#define NSLog(FORMAT, ...) nil

#endif